package com.betterjr.modules.application.dubbo;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.betterjr.common.web.AjaxObject;
import com.betterjr.modules.application.IAmsResourceService;
import com.betterjr.modules.application.service.AmsResourceService;

@Service(interfaceClass = IAmsResourceService.class)
public class AmsResourceDubboService implements IAmsResourceService {

    @Autowired
    private AmsResourceService resourceService;

    @Override
    public String webQueryResources(String anBusinStatus) {

        return AjaxObject.newOk("查询成功", resourceService.queryResources(anBusinStatus)).toJson();
    }

    @Override
    public String webQueryResourcesExtends(String anBusinStatus) {

        return AjaxObject.newOk("查询成功", resourceService.queryResourcesExtends(anBusinStatus)).toJson();
    }

}
